package com.sys.orders.service;

import java.util.Map;

import com.sys.common.pojo.ApiResponse;
import com.sys.common.util.PageInfoUtil;
import com.sys.orders.pojo.AOrdersComment;
import com.sys.orders.pojo.AOrdersDeliver;
import com.sys.orders.pojo.AOrdersDesc;
import com.sys.orders.pojo.AOrdersGoods;


public interface IOrdersDbService
{
	/* == 评论表操作开始 == */
	/**
	 * 保存一条评论表
	 * 
	 * @param admins
	 * @return
	 */
	ApiResponse<Object> saveOneAOrdersCommentService(AOrdersComment orderscomment);

	/**
	 * 更新一条评论表
	 *
	 * @param admins
	 * @return
	 */
	ApiResponse<Object> updateOneAOrdersCommentService(AOrdersComment orderscomment);

	/**
	 * 删除一条评论表
	 *
	 * @param condMap
	 * @return
	 */
	ApiResponse<Object> deleteOneAOrdersCommentService(Map<String, Object> condMap);

	/**
	 * 查询一条评论表
	 *
	 * @param condMap
	 * @return
	 */
	ApiResponse<AOrdersComment> findOneAOrdersCommentService(Map<String, Object> condMap);

	/**
	 * 查询多条评论表
	 *
	 * @param condMap
	 * @return
	 */
	ApiResponse<AOrdersComment> findCondListAOrdersCommentService(PageInfoUtil pageInfoUtil, Map<String, Object> condMap);
	/* == 评论表操作结束 == */

	/* == 发货明细表操作开始 == */
	/**
	 * 保存一条发货明细表
	 * 
	 * @param users
	 * @return
	 */
	ApiResponse<Object> saveOneOrdersDeliverService(AOrdersDeliver ordersdeliver);

	/**
	 * 更新一条发货明细表
	 *
	 * @param Users
	 * @return
	 */
	ApiResponse<Object> updateOneOrdersDeliverService(AOrdersDeliver ordersdeliver);

	/**
	 * 删除一条发货明细表
	 *
	 * @param users
	 * @return
	 */
	ApiResponse<Object> deleteOneOrdersDeliverService(Map<String, Object> condMap);

	/**
	 * 查询一条发货明细表
	 *
	 * @param condMap
	 * @return
	 */
	ApiResponse<AOrdersDeliver> findOneOrdersDeliverService(Map<String, Object> condMap);

	/**
	 * 查询多条发货明细表
	 *
	 * @param condMap
	 * @return
	 */
	ApiResponse<AOrdersDeliver> findCondListOrdersDeliverService(PageInfoUtil pageInfoUtil, Map<String, Object> condMap);
	/* == 发货明细表操作结束 == */

	/* == 订单表操作开始 == */
	/**
	 * 添加一条订单表
	 * 
	 * @param demoCart 订单表的对象
	 * @return 封装的ApiResponse;详情参见:{@link ApiResponse}},泛型是Object
	 */
	ApiResponse<Object> saveOneOrdersDescService(AOrdersDesc ordersdesc);

	/**
	 * 更新一条订单表
	 * 
	 * @param demoCart 订单表的对象
	 * @return 封装的ApiResponse;详情参见:{@link ApiResponse}},泛型是Object
	 */
	ApiResponse<Object> updateOneOrdersDescService(AOrdersDesc ordersdesc);

	/**
	 * 删除一条订单表
	 * 
	 * @param condMap 删除的条件
	 * @return 封装的ApiResponse;详情参见:{@link ApiResponse}},泛型是Object
	 */
	ApiResponse<Object> deleteOneOrdersDescService(Map<String, Object> condMap);

	/**
	 * 查询多条订单表
	 * 
	 * @param pageInfoUtil 封装的分页对象;{{@link PageInfoUtil}
	 * @param condMap      搜索的条件
	 * @return 封装的ApiResponse;详情参见:{@link ApiResponse}},泛型是ACart
	 */
	ApiResponse<AOrdersDesc> findCondListOrdersDescService(PageInfoUtil pageInfoUtil, Map<String, Object> condMap);

	/**
	 * 查询一条订单表
	 * 
	 * @param condMap 搜索的条件
	 * @return 封装的ApiResponse;详情参见:{@link ApiResponse}},泛型是ACart
	 */
	ApiResponse<AOrdersDesc> findOneOrdersDescService(Map<String, Object> condMap);

	/* == 订单表操作结束 == */
	
	/* == 订单明细表操作结束 == */
	/**
	 * 保存一条订单明细
	 * 
	 * @param admins
	 * @return
	 */
	ApiResponse<Object> saveOneOrdersGoodsService(AOrdersGoods ordersgoods);

	/**
	 * 更新一条订单明细
	 *
	 * @param admins
	 * @return
	 */
	ApiResponse<Object> updateOneOrdersGoodsService(AOrdersGoods ordersgoods);

	/**
	 * 删除一条订单明细
	 *
	 * @param condMap
	 * @return
	 */
	ApiResponse<Object> deleteOneAOrdersGoodsAdminsService(Map<String, Object> condMap);

	/**
	 * 查询一条订单明细
	 *
	 * @param condMap
	 * @return
	 */
	ApiResponse<AOrdersGoods> findOneAOrdersGoodsService(Map<String, Object> condMap);

	/**
	 * 查询多条订单明细
	 *
	 * @param condMap
	 * @return
	 */
	ApiResponse<AOrdersGoods> findCondListAOrdersGoodsService(PageInfoUtil pageInfoUtil, Map<String, Object> condMap);	
	/* == 订单明细表操作结束 == */
	
}
